﻿<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<?php
include("siteName.php");
$sOut = "<p>Welcome to the " . $siteName . " site";
if (isset($_SESSION["uName"])) {
$sOut .= ", " . $_SESSION["uName"];
}
$sOut .= ", you can do various activities here - see list below.</p>";
?>
<title><?php echo $siteName; ?></title>
<link type="text/css" rel="stylesheet" href="styles.css" />
</head>
<body>
<iframe name="logoFrame" id="logoFrame" src="logo.htm" border="0" height="120" align="top" frameborder="0" marginheight="0" width="100%" scrolling="no">
<a href="http://www.blindza.co.za/" target="_blank">
<img src="logo/blindza_logo_smaller46.jpg" alt="blindZA.co.za logo - white text on black background, with white border - and red braille version hovering in front of normal text" width="317" height="103" border="0" />
</a>
</iframe>
<h2><?php echo $siteName ?></h2>
<?php
echo $sOut;
?>
<ul>
<?php
if (!(isset($_SESSION["id"]))) {
?>
<li><a href="login.php">Login</a></li>
<li><a href="register.php">Register</a></li>
<?php
} else {
?>
<li><a href="logout.php">Logout</a></li>
<li><a href="changePassword.php">Change password</a></li>
<li><a href="profile.php">Update your information</a></li>
<?php
}//end of checking if logged in
?>
<li><a href="browse.php">Browse product categories</a></li>
<li><a href="search.php">Search for products</a></li>
<?php
if (isset($_SESSION["cart"])) {
echo "<li><a href='cart.php'>My shopping cart</a></li>\n";
}
?>
</ul>
</body>
</html>
